
// ref()对应 state
// computed() 对应 getters
// function() 对应 actions

import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const configStore = defineStore('config', () => {

  let sys_type=ref('0');  //0,1,2

  let test_arr=ref([11,22,33]);

  let sys_type_getter=computed(() => sys_type.value);

  function ch_sys_type(strings){
    sys_type.value=strings
  }
  return { sys_type, test_arr,sys_type_getter,ch_sys_type}
})
